/*
 * args.h
 *
 *  Created on: 2015??12??23??
 *      Author: yuguo.wang
 */

#ifndef ARGS_H_
#define ARGS_H_

#define ARGS_MAX_ARGV  (64)

typedef struct {
    int argc;
    int repeate;
    char *argv[ARGS_MAX_ARGV];
} args_t;

/* convert command string to seperated argument number and strings */
int str_to_args(char *str, args_t *args);

int args_to_str(int argc, char *argv[], char *str, int len);

#endif /* ARGS_H_ */
